package koala.kuangjiademo.data;

import com.wwgps.ect.R;

/**
 * Created by Administrator on 2017/5/25.
 */

public class TestItem {
    private String type;
    private String tv1;
    private String tv2;
    private String tv3;
    private int img;
    private int id; //保存最初的数据 在跳转时使用 使用时要强转 可以根据type强转


    public TestItem(String type, String tv1, String tv2, String tv3,int id) {
        this.type = type;
        this.id = id;
        switch (type) {
            case "declaration":
                this.tv1 = "订单号:" + tv1;
                this.tv2 = "订单类型:" + tv2;
                this.tv3 = "订单创建者:" + tv3;
                this.img = R.drawable.order_type_icon_fix;

                break;
            case "ownerinfo":
                this.tv1 = "车主姓名:" + tv1;
                this.tv2 = "车主电话:" + tv2;
                this.tv3 = "车主身份证号:" + tv3;
                this.img = R.drawable.car_host_message;

                break;
            case "vehicleinfo":
                this.tv1 = "车牌号:" + tv1;
                this.tv2 = "车辆型号:" + tv2;
                this.tv3 = "品牌:" + tv3;
                this.img = R.drawable.car_message;

                break;
            case "productinfo":
                this.tv1 = "设备类型:" + tv1;
                this.tv2 = "设备ID:" + tv2;
                this.tv3 = "SIM卡号:" + tv3;
                this.img = R.drawable.device_message;
                break;
            default:
                break;
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTv1() {
        return tv1;
    }

    public void setTv1(String tv1) {
        this.tv1 = tv1;
    }

    public String getTv2() {
        return tv2;
    }

    public void setTv2(String tv2) {
        this.tv2 = tv2;
    }

    public String getTv3() {
        return tv3;
    }

    public void setTv3(String tv3) {
        this.tv3 = tv3;
    }
}
